import { request } from "@/utils/request";

// 接口前缀
const loginApiUrl = "/login.php";

//获取验证码
export async function getSendcode(params) {
  return await request.post(loginApiUrl + "?act=sendcode", params);
}
//登录
export async function login(params) {
  return await request.post(loginApiUrl + "?act=login", params);
}
//退出登录
export async function loginOut(params) {
  return await request.post(loginApiUrl + "?act=loginout", params);
}
//获取登录信息
export async function getLoginSession(params) {
  return await request.post(loginApiUrl + "?act=loginsession", params);
}
